package com.tiennt.android.callnotes;

import com.tiennt.android.callnotes.ui.NoteViewLayout;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.view.Window;
import android.widget.LinearLayout;

public class MainActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.view_notes_dialog);
		LinearLayout linearNotes = (LinearLayout) findViewById(R.id.linearNotes);
		NoteViewLayout child = new NoteViewLayout(getApplicationContext());
		child.setText("title", "Content");
		linearNotes.addView(child);
		for (int i = 0; i < 10; i++) {
			NoteViewLayout child2 = new NoteViewLayout(getApplicationContext());
			child2.setText("title", "Content");
			linearNotes.addView(child2);
		}
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.activity_main, menu);
		return true;
	}

}
